﻿using SHRIS.MIS.Entity.ScadaBaseInfo;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace SHRIS.MIS.IService.IOpcService
{
    public interface IKepwareService
    {
        /// <summary>
        /// 异步连接
        /// </summary>
        /// <returns></returns>
        Task Connect();

        /// <summary>
        /// 同步连接
        /// </summary>
        void DoConnect();

        void Disconnect();

        Task CreateSubscription();

        void BrowsNode();

        int SaveRowData(string disPlayName, string value,DateTimeOffset timeStamp);

        Task<ServerListEntity> GetServerIdByName(string serverName);

        Task<IEnumerable<DataSourceEntity>> GetChannelsByServerId(Guid serverId);

        Task<IEnumerable<DataSourceEntity>> GetDataSourceByChannel(Guid serverId,string channel);
    }
}
